#pragma once

using namespace System;
using namespace System::Collections;

// Klasse um ein Polygon zu realisieren

ref class Polygon
{

public:
	ArrayList^ points;
	ArrayList^ sides;
private:
	bool isFinal;
	// Bounding-Box
	int minX;
	int maxX;
	int minY;
	int maxY;

public:
	Polygon();
	void addPoint(int x, int y);
	bool setFinal();
	void clear();
	int getPointCount();
	int getSideCount();
	int getMinX();
	int getMaxX();
	int getMinY();
	int getMaxY();
};
